<template>
    <div>
    <table>
        <tr>
            <td>充值金额</td>
            <input type="text" v-model="userprice">
        </tr>
       
        <Button type="submit" @click="topprice">充值</Button>

        

    </table>
       

    </div>
</template>

<script>
export default {
    data () {
        return {
            userprice:''

        }
    },
    methods: {
         topprice(){
             this.axios.post('http://127.0.0.1:8000/mylearn/lifadetop/',{'userprice':this.userprice,'uid':localStorage.getItem('uid')})
             .then(result=>{
           
                 console.log(result)
                 this.$Message(result.data.message)
            
             })
       }
        
    },

}
</script>

<style>

</style>
